package templatemethod.source;

/**
 * @author Chen Guang
 * @date 2019/4/8 0008 下午 17:20
 */
public class Test {
    public static void main(String[] args) {
        AbstractTemplate template;

        template = new ConcreteMethodA();
        template.templateMethod();

        System.out.println("-----");

        template = new ConcreteMethodB();
        template.templateMethod();
    }
}
